Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RPC] Asynchronous signals. #177

Merged
merged 4 commits into from
Mar 27, 2015
Merged

[RPC] Asynchronous signals. #177

merged 4 commits into from
Mar 27, 2015

Conversation

kobolog
Copy link
Member

@kobolog kobolog commented Mar 25, 2015

Signals that work.

@kobolog
Copy link
Member Author

kobolog commented Mar 25, 2015

@3Hren @antmat

@kobolog kobolog force-pushed the async-signals branch 2 times, most recently from 9d58f06 to 54ea0c9 Compare March 25, 2015 19:30
@kobolog kobolog changed the title Asynchronous signals [RPC] Asynchronous signals Mar 25, 2015
@kobolog kobolog force-pushed the async-signals branch 2 times, most recently from 6c0721f to 29e7f06 Compare March 25, 2015 23:37
@kobolog kobolog changed the title [RPC] Asynchronous signals [RPC] Asynchronous signals. Mar 26, 2015
Andrey Sibiryov and others added 3 commits March 26, 2015 11:54
Boost Signals2 is a good thing, but not really safe in our case due to
concurrency issues. This one introduces a new signalling architecture based on
asynchronous signal delivery and Cocaine RPC.
Signals don't use queues, but use frozen events. Split these two entities to
reduce include burden.
@kobolog kobolog force-pushed the async-signals branch 5 times, most recently from 3356511 to 817e22b Compare March 26, 2015 20:51
typedef typename signal_type::slot_type slot_type;
result_type
operator()(const std::shared_ptr<io::basic_slot<Event>>& slot) const {
auto args = this->args;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if args aren't copyable?
Okay, I see it doesn't make sense to use move-only args.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, history won't work in that case.

kobolog pushed a commit that referenced this pull request Mar 27, 2015
[RPC] Asynchronous signals.
@kobolog kobolog merged commit 701661c into master Mar 27, 2015
@kobolog kobolog deleted the async-signals branch March 27, 2015 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants